var TableManaged = function(param) {
				return {
					//main function to initiate the module
					init : function() {
						
						
						if (!jQuery().dataTable) {
							return;
						}
						
						var datatable = $('#' + json.id).dataTable(
								{
									"bFilter" : !json.bFilter ? false : true,
									"bSort" : !json.bSort ? false : true,
									"bProcessing" : !json.bProcessing ? false : true,
									"sAjaxSource" : json.url,
									"fnServerParams" : function(aoData) {
										$.each(json.param, function(i, item) {
											aoData.push(item);
										});
									},
									"sServerMethod" : "post",
									"bServerSide" : true,
									"aoColumns" : json.columns ? json.columns : null,
									//"aLengthMenu" : [ [ 10, 20, 50 ], [ 10, 20, 50 ] ],
									"iDisplayLength" : json.pagesize ? json.pagesize
											: 10,
									"bLengthChange" : !json.bLengthChange ? false
											: true,
									"sPaginationType" : "bootstrap",
									"aaSorting" : json.aaSorting?json.aaSorting:'',
									"aoColumnDefs" : [ {
										"sDefaultContent" : '',
										"aTargets" : [ "_all" ]
									} ],
									
									"fnCreatedRow":function(nTr,data,iRow,iTotal){
										if(param.showLineNuber){
											if(nTr){
												nTr.cells[0].innerHTML=(iRow+1);
											}
										}
									},
									"fnServerData" : function(sSource, aoData,
											fnCallback) {
										$.ajax({
											"dataType" : 'json',
											"type" : "POST",
											"url" : sSource,
											"data" : aoData,
											"success" : fnCallback,
											"timeout" : 3000000,
											//"async" : false,
											"error" : function handleAjaxError(xhr,
													textStatus, error) {
												if (textStatus == "timeout") {
													alert("连接超时!请稍后再试!!!");
												} else if (textStatus == "error") {
													alert("系统繁忙!!!,请稍后再试!!!");
												}
												datatable.fnProcessingIndicator(false);
											}
										});
									},
									"oLanguage" : json.pageInfo ? json.pageINfo : {
										"sLengthMenu" : "每页显示 _MENU_ 条记录",
										"sZeroRecords" : "抱歉， 没有找到",
										"sInfo" : "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
										"sInfoEmpty" : " ",
										"sProcessing" : "正在查询....",
										"sInfoFiltered" : "",
										"oPaginate" : {
											"sFirst" : "首页",
											"sPrevious" : "前一页",
											"sNext" : "后一页",
											"sLast" : "尾页"
										}
									}
								});
						return datatable;
					}
				};

			};
			
			//以下用于订单确认列表页面，请勿删除！
			var TableManaged_auth = function(param) {
				return {
					//main function to initiate the module
					init : function() {
						if (!jQuery().dataTable) {
							return;
						}
						//var aa = 0;
						var datatable = $('#' + json.id).dataTable(
								{
									"bFilter" : !json.bFilter ? false : true,
									"bSort" : !json.bSort ? false : true,
									"bProcessing" : !json.bProcessing ? false : true,
									"sAjaxSource" : json.url,
									"fnDrawCallback": function( oSettings ) {
										//alert( oSettings._iDisplayStart );
										//aa = oSettings._iDisplayStart;
									},
									"fnServerParams" : function(aoData) {
										$.each(json.param, function(i, item) {
											aoData.push(item);
										});
									},
									"sServerMethod" : "post",
									"bServerSide" : true,
									"aoColumns" : json.columns ? json.columns : null,
									//"aLengthMenu" : [ [ 10, 20, 50 ], [ 10, 20, 50 ] ],
									"iDisplayLength" : json.pagesize ? json.pagesize
											: 10,
									"iDisplayStart" : json.iDisplayStart ? json.iDisplayStart
										: 0,
									"bLengthChange" : !json.bLengthChange ? false
											: true,
									"sPaginationType" : "bootstrap",
									"aaSorting" : json.aaSorting?json.aaSorting:'',
									"aoColumnDefs" : [ {
										"sDefaultContent" : '',
										"aTargets" : [ "_all" ]
									} ],
									
									"fnCreatedRow":function(nTr,data,iRow,iTotal){
										if(param.showLineNuber){
											if(nTr){
												nTr.cells[0].innerHTML=(iRow+1);
											}
										}
									},
									"fnServerData" : function(sSource, aoData,
											fnCallback) {
										$.ajax({
											"dataType" : 'json',
											"type" : "POST",
											"url" : sSource,
											"data" : aoData,
											"success" : fnCallback,
											"timeout" : 3000000,
											"async" : false,
											"error" : function handleAjaxError(xhr,
													textStatus, error) {
												if (textStatus == "timeout") {
													alert("连接超时!请稍后再试!!!");
												} else if (textStatus == "error") {
													alert("系统繁忙!!!,请稍后再试!!!");
												}
												datatable.fnProcessingIndicator(false);
											}
										});
									},
									"oLanguage" : json.pageInfo ? json.pageINfo : {
										"sLengthMenu" : "每页显示 _MENU_ 条记录",
										"sZeroRecords" : "抱歉， 没有找到",
										"sInfo" : "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
										"sInfoEmpty" : " ",
										"sProcessing" : "正在查询....",
										"sInfoFiltered" : "",
										"oPaginate" : {
											"sFirst" : "首页",
											"sPrevious" : "前一页",
											"sNext" : "后一页",
											"sLast" : "尾页"
										}
									}
								});
						//datatable.aa = aa;
						return datatable;
					}
				};

			};			